package com.mokairui.completable_future;

import java.util.concurrent.CompletableFuture;

/**
 * @author Mokairui
 * @Description
 *                  XXX XXXAsync:
 *                  supplyAsync(有返回值) runAsync(无返回值)
 *                  thenApply(有参数有返回) thenAccept(有参数无返回) thenRun(无参数无返回)
 *                  thenCombine(同时得到两个线程结果，加工后返回) thenAcceptBoth(无返回) runAfterBoth(不关心两个线程的结果且无返回值)
 *                  applyToEither() acceptEither(得到最快执行线程的结果无返回) runAfterEither(不关心最快执行完线程的结果且无返回值)
 *                  exceptionally() handle(正常就返回结果异常就返回异常，总之会返回值) whenComplete()和handle的区别是没有返回值
 * @Since 2021/7/4
 */
public class CompletableFutureDemo3 {
    public static void main(String[] args) {

    }
}
